<!--数值来自下拉框-->
<template>
    <div class="num-value-select">
        <el-select size="mini" v-model="numValue">
            <el-option
                v-for="item in numValueList"
                :key="item.enName"
                :label="item.name"
                :value="item.enName">
            </el-option>
        </el-select>
    </div>
</template>

<script>
    import ajax from '@api/ajax'
    export default {
        name: 'NumValueSelect',
        data () {
            return {
                numValue: '',
                numValueList: []
            }
        },
        props: {
            menuId: {
                type: String
            }
        },
        methods: {
           getNumValueList () {
               ajax.post(qryTreeData, this.menuId).then(res => {
                   this.numValueList = res.data.columnInfo[0].children
               }).catch(err => {
                   console.error(err, '查询错误！')
               })
           }
        },
        created () {
            this.getNumValueList()
        }
    }
</script>

<style scoped>

</style>
